<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"  xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content animated fadeInRight">
		<div class="col-sm-12">
			<div class="ibox">
				<div class="ibox-body">
					<div class="fixed-table-toolbar">
						<div class="columns pull-right" role="group">
							<button class="btn btn-success" onclick="reLoad()">
								<i class="fa fa-search" aria-hidden="true"></i>查询
							</button>
							<button class="btn btn-danger" shiro:hasPermission="flow:balance:export" onclick="exportBalanceLogs()">
								<i class="fa fa-mail-reply-all" aria-hidden="true"></i>导出
							</button>
						</div>
						<div class="pull-right search col-md-1 nopadding">
							<input id="queryItem" type="text" class="form-control" placeholder="姓名/电话">
						</div>
						<div class="columns pull-right col-md-1 nopadding">
							<select id="style" data-placeholder="资金类型" class="form-control chosen-select" tabindex="2">
								<option value="" selected="selected">资金类型</option>
								<option th:each="item: ${balanceLogStyles}" th:text="${item.name}" th:value="${item.code}"></option>
							</select>
						</div>
						<div class="columns pull-right col-md-1 nopadding">
							<select id="source"  name="source" data-placeholder="资金来源" class="form-control chosen-select" tabindex="2">
								<option   value="0">会员</option>
								<option   value="1">门店</option>
								<option   value="2">供应商</option>
							</select>
						</div>
						<div class="columns pull-right col-md-1 nopadding">
							<select id="flowtype"  name="flowtype" data-placeholder="流水类型" class="form-control chosen-select" tabindex="2">
								<option   value="">-流水类型-</option>
								<option   value="1">用户提现</option>
								<option   value="2">用户提现失败</option>
								<option   value="3">用户充值</option>
								<option   value="4">用户扣款</option>
								<option   value="5">门店发佣金</option>
								<option   value="6">门店提现</option>
								<option   value="7">门店提现失败</option>
								<option   value="8">门店充值</option>
								<option   value="9">门店扣款</option>
								<option   value="10">门店退款</option>
								<option   value="11">供应商货款结算</option>
								<option   value="12">供应商提现</option>
								<option   value="13">供应商提现失败</option>
								<option   value="14">供应商充值</option>
								<option   value="15">供应商扣款</option>
								<option   value="16">用户提现申请</option>
								<option   value="17">门店提现申请</option>
								<option   value="18">供应商提现申请</option>
								<option   value="19">供应商保证金缴纳</option>
								<option   value="20">供应商保证金退至余额</option>
							</select>
						</div>
						<div class="columns pull-right col-md-1 nopadding">
							<input type="text" class=" form-control" id="createTimeEnd" name="createTimeEnd" placeholder="请选择结束日期"
								   onclick="laydate({istime: false, format: 'YYYY-MM-DD'})"
								   style="background-color: #fff;" readonly="readonly"/>
						</div>

						<div class="columns pull-right">
							<label style="font-weight: 700;float: left;padding: 3px 10px;line-height: 2;font-size: 15px">
								<i class="fa fa-exchange"></i>
							</label>
						</div>

						<div class="columns pull-right col-md-1 nopadding">
							<input type="text" class=" form-control" id="createTimeStart" name="createTimeStart" placeholder="请选择开始日期"
								   onclick="laydate({istime: false, format: 'YYYY-MM-DD'})"
								   style="background-color: #fff;" readonly="readonly"/>
						</div>

                         <input type="hidden" name="shipcardRecordId" id="shipcardRecordId" th:value="${shipcardRecordId}">
						<input type="hidden" name="centreId" th:value="${centreId}" th:if="${flag} == '1'">
						<div class="columns pull-right col-md-1 nopadding" th:if="${flag} == '0'">
							<select data-placeholder="商户" class="form-control chosen-select" name="centreId" tabindex="2">
								<option value="">选择商户</option>
								<option th:each="item: ${centreList}" th:text="${item.name}" th:value="${item.centreId}"></option>
							</select>
						</div>

					</div>
					<table id="balanceLogTable" data-mobile-responsive="true"></table>
				</div>
			</div>
		</div>
	</div>
	<div th:include="include :: footer"></div>
	<script type="text/javascript" src="/js/appjs/promotion/shipcard/balanceFlow.js"></script>
</body>
</html>